package com.cskaoyan.Utils;

import com.cskaoyan.bean.systembean.Log;
import com.cskaoyan.mapper.systemmapper.LogMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * @author hsp
 * @date 2021/5/15 11:50
 */
@Component
public class LogUtils {
    @Autowired
     LogMapper logMapper;

    public  void insertLog(String admin, String ip, Date datetime,Integer type,String action,Boolean status,String result){
        Log log = new Log(null,admin,ip,type,action,status,result,null,datetime,datetime,false);

        logMapper.insert(log);

    }
}
